﻿using Common.Logging;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TopQuartz.Jobs
{
    [DisallowConcurrentExecution]
    public class TestJob : IJob
    {
        private readonly ILog log = LogManager.GetLogger(typeof(TestJob));

        public void Execute(IJobExecutionContext context)
        {
            if (log.IsInfoEnabled)
            {
                log.InfoFormat("hi {0}!", context.JobDetail.JobDataMap["name"]);
            }
        }
    }
}
